# 追加到 /etc/profiles

export JAVA_HOME=/opt/jdk/current
export JRE_HOME=$JAVA_HOME/jre
export SCALA_HOME=/opt/scala/current
export ZOOKEEPER_HOME=/opt/zookeeper/current
export HADOOP_HOME=/opt/hadoop/current
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop
export HIVE_HOME=/opt/hive/current
export HBASE_HOME=/opt/hbase/current
export SPARK_HOME=/opt/spark/current
export FLINK_HOME=/opt/flink/current
export PATH=$JAVA_HOME/bin:$SCALA_HOME/bin:$ZOOKEEPER_HOME/bin:$HADOOP_HOME/bin:$HIVE_HOME/bin:$HBASE_HOME/bin:$SPARK_HOME/bin:$FLINK_HOME/bin:$PATH

if [ `command -v hadoop` ];then
  export HADOOP_CLASSPATH=`hadoop classpath`
fi